package com.fintecher.service.serviceImpl;

import com.fintecher.dao.IDictionaryDao;
import com.fintecher.pojo.Dictionary;
import com.fintecher.service.IDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/2/8.
 */
@Service("dictionaryService")
public class DictionaryServiceImpl implements IDictionaryService {
    @Resource
    private IDictionaryDao dictionaryDao;

    public IDictionaryDao getDictionaryDao() {
        return dictionaryDao;
    }

    @Autowired
    public void setDictionaryDao(IDictionaryDao dictionaryDao) {
        this.dictionaryDao = dictionaryDao;
    }


    public Dictionary selectByPrimaryKey(Integer id) {
        return dictionaryDao.selectByPrimaryKey(id);
    }

    public List<Dictionary> selectPositiveType(Integer superID) {
        return dictionaryDao.selectPositiveType(superID);
    }

    public Dictionary selectByDictName(String dictName) {
        return dictionaryDao.selectByDictName(dictName);
    }


}
